#ifndef _VGPLIB_H_
#define _VGPLIB_H_

#include "cocos2d.h"
#include "VGPSprite.h"
#include "VGPLabel.h"
#include "SceneEngine.h"
#include "VGPClip.h"

//sound
#include "../../CocosDenshion/include/SimpleAudioEngine.h"

//Admob
#if (CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID)
#include "VGPAdmob.h"
#endif //CC_PLATFORM_ANDROID

#include "../Building/GuiDefine.h"
#include "../Building/TextDefine.h"
#include "../Building/SpriteDefine.h"
#include "../Building/FontDefine.h"
#include "../Building/LevelDefine.h"

#define FPS 40
#define FRAME_TIME FPS/1000.0f

#define TRANSACTION_TIME 0.5

class VGPLib
{
protected:
	static VGPLib* instance;

public:
	static VGPLib* getInstance();	

	//exit game
	void exitGame();

	//convert Dec to char
	char* convertDecToChar ( int num );

	//get SpriteFrame
	cocos2d::CCSpriteFrame* getSpriteFrame ( int spriteID, int frameID );

	//load sprite -> plist file
	void loadSprite ( int spriteID );

	//unload sprite
	void unLoadSprite ( int spriteID );
	
};

#endif